package leetcode.code1276;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Solution {
	public List<Integer> numOfBurgers(int t, int c) {
		if (t - c * 2 < 0 || c * 4 - t < 0 || (t - c * 2) % 2 != 0 || (c * 4 - t) % 2 != 0) {
			return new ArrayList<>();
		}
		return Arrays.asList(new Integer[] { (t - c * 2) / 2, (c * 4 - t) / 2 });
	}
}
